<table>
    <thead>
        <tr>
            <th><g:message code="b2b.bomDetail.bom.label" default="Bom" /></th>
            <th><g:message code="b2b.bomDetail.serialNumber.label" default="Serial Number" /></th>
            <th><g:message code="b2b.bomDetail.detailProduct.label" default="Detail Product" /></th>
            <th><g:message code="b2b.bomDetail.owner.label" default="Owner" /></th>
            <th><g:message code="b2b.bomDetail.createdBy.label" default="Created By" /></th>
            <g:sortableColumn property="dateCreated" title="${message(code: 'b2b.bomDetail.dateCreated.label', default: 'Date Created')}" />
            <th><g:message code="b2b.bomDetail.lastModifiedBy.label" default="Last Modified By" /></th>
            <g:sortableColumn property="lastUpdated" title="${message(code: 'b2b.bomDetail.lastUpdated.label', default: 'Last Updated')}" />
        </tr>
    </thead>
    <tbody>
    <g:each in="${bomDetailInstanceList}" status="i" var="bomDetailInstance">
        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
            <td><g:link action="show" id="${bomDetailInstance.id}">${fieldValue(bean: bomDetailInstance, field: "bom")}</g:link></td>
            <td>${fieldValue(bean: bomDetailInstance, field: "serialNumber")}</td>
            <td>${fieldValue(bean: bomDetailInstance, field: "detailProduct")}</td>
            <td>${fieldValue(bean: bomDetailInstance, field: "owner")}</td>
            <td>${fieldValue(bean: bomDetailInstance, field: "createdBy")}</td>
            <td><g:formatDate date="${bomDetailInstance.dateCreated}" /></td>
            <td>${fieldValue(bean: bomDetailInstance, field: "lastModifiedBy")}</td>
            <td><g:formatDate date="${bomDetailInstance.lastUpdated}" /></td>
        </tr>
    </g:each>
    </tbody>
</table>